package com.fairisanddog.service.serviceimpl;


import com.fairisanddog.entity.Users;
import com.fairisanddog.mapper.UsersMapper;
import com.fairisanddog.service.UsersService;

import java.util.List;

public class UsersServiceImpl implements UsersService {

    private UsersMapper usersMapper;
    public void setUsersMapper(UsersMapper usersMapper) {
        this.usersMapper = usersMapper;
    }

    public int addUser(Users users) {
        return usersMapper.addUser(users);
    }

    public int deleteUserById(int uId) {
        return usersMapper.deleteUserById(uId);
    }

    public Users queryUserById(int uId) {
        return usersMapper.queryUserById(uId);
    }

    public List<Users> queryAllUsers() {
        return usersMapper.queryAllUsers();
    }

    public Users queryUsersByNameAndPwd(String uName, String uPwd) {
        return usersMapper.queryUsersByNameAndPwd(uName,uPwd);
    }


}
